$(function(){
	$("#addForm").validate({
		rules: {
			name: 'required',
			link: {required:true, url:true},
			tank: 'required'
		},
		messages: {
			name: {
				required: "请输入链接名称"
			},
			link: {
				required: "请输入链接地址"
			},
			tank: {
				required: "请选择是否新窗口打开"
			}
		}
	});

});